home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Cream of the Crop 1
/
Cream of the Crop 1.iso
/
PROGRAM
/
QBWIZ12.ARJ
/
ERRLEVEL.ASM
< prev
next >
Wrap
Assembly Source File
|
1991-02-20
|
1KB
|
43 lines
comment #
+----------------------------------------------------------------------+
| |
| QBWIZ Copyright (c) 1990-1991 Thomas G. Hanlin III |
| |
| QuickBASIC Access Library |
| |
| assembled with the excellent OPTASM by SLR |
| |
+----------------------------------------------------------------------+
#
public ERRLEVEL
.model medium
.code
extb B$terminate
ERRLEVEL proc ; set error level
push bp ;
mov bp,sp ;
mov ax,6[bp] ;
push ds ;
lea bx,B$terminate ;
mov byte ptr cs:-3[bx],0B8h ; store opcode for "MOV AX,immed"
mov cs:-2[bx],ax ; store immediate value
pop ds ;
pop bp ;
ret 2 ;
ERRLEVEL endp ; set error level
end